Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error catching #762

Merged
merged 10 commits into from
Sep 23, 2024
Merged

Improve error catching #762

merged 10 commits into from
Sep 23, 2024

Conversation

gmrabian
Copy link
Contributor

@gmrabian gmrabian commented Sep 19, 2024

Description

We had certain return blocks based on variables being undefined where they could not be undefined as a result of their flow. This fixes that logic with try/catches and builds on our new response pattern

Related ticket(s)

CMDCT-3988


How to test

All tests pass
Everything works as normal
If you resend a request locally with invalid fieldData or metadata if throws a 400 with the proper error message

Notes


Pre-review checklist

  • I have added thorough tests, if necessary
  • I have updated relevant documentation, if necessary
  • I have performed a self-review of my code
  • I have manually tested this PR in the deployed cloud environment

Base automatically changed from refactor-responses to main September 20, 2024 18:31
@gmrabian gmrabian changed the title improve error catching Improve error catching Sep 20, 2024
@gmrabian gmrabian marked this pull request as ready for review September 20, 2024 19:43
@gmrabian gmrabian added the ready for review Ready for all the reviews! label Sep 20, 2024
karla-vm
karla-vm previously approved these changes Sep 20, 2024
Copy link
Contributor

@benmartin-coforma benmartin-coforma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

Copy link

codeclimate bot commented Sep 23, 2024

Code Climate has analyzed commit bd2f853 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 93.9% (90% is the threshold).

This pull request will bring the total coverage in the repository to 93.1% (0.0% change).

View more on Code Climate.

@gmrabian gmrabian merged commit 2b6b7e2 into main Sep 23, 2024
22 checks passed
@gmrabian gmrabian deleted the improve-catching branch September 23, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Ready for all the reviews!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants